package com.hskn.hss.module.costdict.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.costdict.entity.CostDict;
import com.hskn.hss.module.costdictitem.entity.CostDictItem;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-05
 */
public interface ICostDictService extends IService<CostDict> {
    AjaxResult insert(JSONObject params);

    AjaxResult update(JSONObject params);

    AjaxResult deleteByid(String id);

    CostDict getitemByid(String id) throws HssException;

    List<CostDict> getitemListByParentId(String id) throws HssException;

    List<CostDictItem> getitemList(CostDict costDict) throws HssException;

    Map<String, CostDictItem> getitemForCostDictItemMap(QueryWrapper<CostDict> queryWrapper) ;
}
